import { style, px2 } from "@/MUI/style/Style";
import Router from "@/router/";
import Preferences from "@/MUI/config/preferences";
// import axios from "axios";
import config from "@/config";
import Store from "@/store"

export default {
  install: function (Vue) {
    // config
    Vue.prototype.config = config;
    document.title = config.projectName;
    Vue.prototype.$copy = function (text) {
      var textarea = document.createElement('textarea');
      textarea.style.position = 'fixed';
      textarea.style.opacity = 0;
      textarea.value = text;
      document.body.appendChild(textarea);
      textarea.select();
      document.execCommand('copy');
      document.body.removeChild(textarea);
      this.$message.success('复制成功')
    };

    Vue.prototype.global = {
      maliciousLevel: {
        level_0: '未知判定数',
        level_1: '安全判定数',
        level_2: '可疑判定数',
        level_3: '恶意判定数',
      },
      maliciousLevelText: {
        level_0: '未知',
        level_1: '安全',
        level_2: '可疑',
        level_3: '恶意',
      },
      intelSourcesImg: [
        {
          name: '自定义',
          img: require('@/assets/image/home/LOGO1.png'),
        },
        {
          name: '微步本地',
          img: require('@/assets/image/home/LOGO2.png'),
        }
      ]
      /*intelSourcesImg: {
        LOGO_1: '@/assets/image/home/LOGO1.png',
        LOGO_2: '@/assets/image/home/LOGO2.png',
        LOGO_3: '@/assets/image/home/LOGO3.png',
      }*/
      /*kindObj: {
        "dayMap": {
          title: '日',
          name: 'day',
        },
        "monthMap": {
          title: '月',
          name: 'month',
        },
        "quarterMap": {
          title: '季度',
          name: 'quarter',
        },
        "yearMap": {
          title: '年',
          name: 'year',
        },
      }*/
    }

  },

};
